package com.ksr.logistics.mapper;

import com.ksr.logistics.pojo.OrderDetail;
import com.ksr.logistics.pojo.OrderDetailExample;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface OrderDetailMapper {
    int deleteByPrimaryKey(Long orderDetailId);

    @Delete("delete from t_order_detail where order_id=#{orderId}")
    int deleteByOrderId(Long orderId);

    int insert(OrderDetail record);

    int insertSelective(OrderDetail record);

    List<OrderDetail> selectByExample(OrderDetailExample example);

    OrderDetail selectByPrimaryKey(Long orderDetailId);

    int updateByPrimaryKeySelective(OrderDetail record);

    int updateByPrimaryKey(OrderDetail record);
}